Managing rich presence collections in a single request

ABSTRACT

A method and system for increasing the computational and network efficiency of presence servers having collections of publications is provided. The presence system uses several techniques that enable a presence server to provide rich presence information without requiring expensive processing. First, the presence system accepts batches of publication updates in a single presence update request. Similarly, the presence system accepts batches of subscription requests. Next, the presence system supports new expiration types for publication update requests that eliminate the need for a publishing user to continually refresh presence information that has not changed. Finally, the presence system accepts access lists that contain membership groups rather than an individual list of users that are to have access to a particular presence collection.

CROSS-REFERENCE TO RELATED APPLICATIONS

This application is a continuation application and claims priority toU.S. patent application Ser. No.11/278,309, now U.S. Pat. No. 8,108,345,filed Mar. 31, 2006, entitled “MANAGING RICH PRESENCE COLLECTIONS IN ASINGLE REQUEST,” which application is incorporated herein by referencein its entirety.

BACKGROUND

Presence servers are increasingly being used to provide presenceinformation such as the availability status of users. Presenceinformation of a user identifies the current “presence state” of thatuser. Users may make their presence information available so that otherusers can decide how best to communicate with them. For example, thepresence information may indicate whether a user is logged on (“online”)with an instant messaging server or is logged off (“offline”). Presenceinformation may also provide more detailed information about theavailability of the user. For example, even though a user is online,that user may be away from their computer in a meeting. In such a case,the presence state may indicate “online” and “in a meeting.”

In an instant messaging context, a publishing user (“publisher”) mayprovide their presence information to a presence service that thenprovides the presence information to subscribing users (“subscribers”).Thus, a presence service may use a subscriber/publisher model to providethe presence information for the publishing and subscribing users of thepresence service. Whenever the presence information of a user changes,the presence service is notified of the change by that user's computersystem and in turn notifies the subscribing users of the change. Asubscribing user can then decide how best to contact the publishing userbased on the presence information of the intended participants. Forexample, if the presence information indicates that a publishing user iscurrently in a conference telephone call, then the subscribing user maydecide to send an instant message, rather than place a telephone call,to the publishing user. If the subscribing user, however, needs to calland speak with the publishing user, the subscribing user can monitor thepresence information of the publishing user to know when the call can beplaced. When the subscribing user notices that the publishing user'spresence information indicates that the telephone conference has beenconcluded, the subscribing user can then place the telephone call.

A particular user may also publish presence information from multipledevices. For example, a user may be logged on to a presence service froma laptop computer, a desktop computer, and a cell phone all at the sametime. The presence information may indicate the user's status on eachdevice. This is particularly useful if, for example, the user is walkingto a meeting with a cell phone and has stepped away from their desktopcomputer. If a subscribing user wants to contact the publishing user,the presence information may indicate that a call to the cell phonewould be a more effective way to reach the user than an instant messagereceived at the user's desktop computer. Each of a user's devices mayalso subscribe to the presence information of the user's other devicesto enable the devices, for example, to determine which device thepublishing user is currently most active at.

Because of the increasing popularity of instant messaging systems andother real-time communications systems, presence services need tosupport an increasing number of users. In addition, these systems needto support increasingly complex definitions of “presence information.”For example, presence information may include calendar information thatspecifies the availability of a publisher during the next severalmonths. As a result, a presence server is typically developed to providepresence services in an efficient way. Unfortunately, typical presencemodels require intense computation when presence information is updated.Thus, as more publishers and subscribers are added, additional presenceservers are needed to perform the necessary computations.

Early presence systems handled the publishing of presence information byplacing all of the presence information in a single XML document. Asparts of the user's presence information changed, a publisher had topoint to a line in the document and replace it with new presenceinformation or point to a node within an XML subtree and replace it withanother XML subtree. This kind of update required the presence server toperform computationally expensive XML parsing. As the number of usersand presence updates increase, the burden of XML parsing on the presenceserver could become overwhelming. This model of publishing presenceinformation also does not allow a subscriber to subscribe to only aportion of a presence document. In addition, individual portions of thedocument are not versioned such that a subscriber or presence server caneasily tell which portions of the document have recently changed. Thismodel also does not allow exposing different versions of a presencedocument to different subscribers or specifying different authorizationinformation for individual portions of the document.

A more efficient presence system that is less computationally expensiveis described in a related application, U.S. patent application Ser. No.11/190,503 entitled “ORGANIZING PRESENCE INFORMATION INTO COLLECTIONS OFPUBLICATIONS,” filed on Jul. 26, 2005, which is incorporated herein inits entirety by reference. The related application describes a methodand system for managing presence information based on collections ofpublications. A presence collection system creates collections ofpublications for a publisher. A publication includes a type and value,and may be accompanied by attributes such as when the publication shouldexpire. For example, a publication with a type “status” and a value“online” may indicate to subscribing users that the publishing user iscurrently online. A publisher may define one collection of publicationsthat is to be made available to certain subscribers and anothercollection of publications that is to be made available to othersubscribers. For example, one collection may be visible to the public,while another may be visible only to coworkers of the publishing user.Each collection contains a list of the users that are allowed tosubscribe to the information within that collection. The presencecollection system may allow a publisher to update individualpublications within a collection. Upon receiving the update, thepresence server can quickly update the presence information withouthaving to rely on computationally expensive parsing of XML documents.Each collection of publications may also contain categories ofinformation. A category is a type of publication that spans multiplecollections. For example, a category “status” may have a publicationwith a value “not available” in a collection that is available to thepublic, and a publication with a value “in a meeting with John” in acollection available to coworkers. Publications may also specify aninstance identifier. An instance identifier differentiates similarinformation within the same collection. For example, a user may have apublication “status” with an instance of “laptop” that indicates thestatus of the user at their laptop, and another publication “status”with an instance of “cell phone” that indicates the status of the userat their cell phone.

Although the presence collection system is an improvement over priortechniques, it may place a higher burden on network resources and thepresence server. For example, a publishing user who sends separateupdates to many publication instances within many collections to apresence server creates a high amount of network traffic to the presenceserver. Similarly, a subscribing user who receives separatenotifications for each publication that is updated creates a high amountof network traffic from the presence server to the subscribing user'slogged-on device or devices. Typically, presence publications are set toexpire within a fixed amount of time, and must be periodically refreshedby the publishing user in order to keep the publications published. Theneed to refresh many publications that have not changed creates anunnecessary burden on the server. Finally, the addition of collectionshaving varying degrees of detail available to different subscribingusers creates an opportunity to expose presence information to broadergroups of subscribers. The list of users with access to a collection cangrow quite large and the computational cost of checking which collectiona particular subscriber should be subscribed to only increases as thelist grows, causing an additional burden to the presence server.

SUMMARY

A method and system for increasing the computational and networkefficiency of presence servers having collections of publications isprovided. The presence system uses several techniques that enable apresence server to provide rich presence information without requiringexpensive processing. First, the presence system accepts batches ofpublication updates in a single presence update request. Similarly, thepresence system accepts batches of subscription requests. Next, thepresence system supports new expiration types for publication updaterequests that eliminate the need for a publishing user to continuallyrefresh presence information that has not changed. Finally, the presencesystem accepts access lists that contain membership groups rather thanan individual list of users that are to have access to a particularpresence collection.

This Summary is provided to introduce a selection of concepts in asimplified form that are further described below in the DetailedDescription. This Summary is not intended to identify key features oressential features of the claimed subject matter, nor is it intended tobe used to limit the scope of the claimed subject matter.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a block diagram that illustrates components of the presencesystem in one embodiment.

FIG. 2 is a protocol listing that illustrates the SIP protocolextensions for sending publication updates in one embodiment.

FIG. 3 is a flow diagram that illustrates the processing of the updatepublications component of the presence system in one embodiment.

FIG. 4 is a protocol listing that illustrates the SIP protocolextensions for sending subscription requests in one embodiment.

FIG. 5 is a flow diagram that illustrates the processing of the updatesubscriptions component of the presence system in one embodiment.

FIG. 6 is a protocol listing that illustrates the SIP protocolextensions for updating collection memberships in one embodiment.

FIG. 7 is a flow diagram that illustrates the processing of the updatememberships component of the presence system in one embodiment.

FIG. 8 is a flow diagram that illustrates the processing of the expirepublications component of the presence system in one embodiment.

DETAILED DESCRIPTION

A method and system for increasing the computational and networkefficiency of presence servers having collections of publications isprovided. The presence system uses several techniques that enable apresence server to provide rich presence information without requiringexpensive processing. First, the presence system accepts batches ofpublication updates in a single presence update request. For example, apublishing user can publish multiple categories of information inmultiple collections by sending a single update request to the presenceserver. Similarly, the presence system accepts batches of subscriptionrequests. For example, a subscribing user can request a subscription tomultiple categories of information in multiple collections by sending asingle subscription request to the presence server. Next, the presencesystem supports new expiration types for publication update requeststhat eliminate the need for a publishing user to continually refreshpresence information that has not changed. For example, a publishinguser's home phone number rarely changes, so the presence system allowsthe user to publish this information once and not update it unless theinformation changes, rather than republishing the information once perhour. Finally, the presence system accepts access lists that containmembership groups rather than an individual list of users that are tohave access to a particular presence collection. For example, apublishing user can grant access to all of their coworkers by applying amembership group to a collection without listing each coworkerindividually.

Publication Batching

In one embodiment, the presence system accepts multiple presencepublications in a single request. The publications can span multiplecategories, instances, and collections. For example, a publishing userhaving publication categories “status” and “location” can publish astatus of “not available” and a location of “Microsoft Headquarters” ina collection accessible to the public and a status of “in a meeting withJohn” and a location of “Bldg 40/Conference Room 5” in a collectionaccessible to coworkers. The publishing user can also publish multipleinstances of the same information within each collection. For example, acategory “phone number” might have instances of “home” for a homenumber, “work” for a work number, and “mobile” for a cell phone number.The user can publish values for each of these instances in the samepublication request.

In one embodiment, the presence system accepts unpublishing andpublishing publications in a single request. For example, a publishinguser who is going to a meeting may log off of their desktop computer,causing unpublishing of publication instances relating to the desktop,and the user may become active at their cell phone, causing newinstances to need to be added for the cell phone. The presence systemcan accept both the unpublishing of the desktop publications and thepublishing of the cell phone publications in a single update request.For example, an enterprise's network presence service may receive thepublication updates from both devices and forward the updates to aglobal presence service in a single request.

In one embodiment, the presence system sends multiple presence updatesusing extensions to the Session Initiation Protocol (SIP) and SIP forInstant Messaging and Presence Leveraging Extensions (SIMPLE) protocols.SIP is an application-layer control protocol that devices can use todiscover one another and to establish, modify, and terminate sessionsbetween devices and is an Internet proposed standard described in “RFC3261.” RFC 3261, which is available on the Internet atwww.ietf.org/rfc/rfc3261.txt, is incorporated herein in its entirety byreference. The SIP standard allows implementers to add extensions todefine custom behaviors. The presence system adds a tag <publish> thatcontains a list of <publication> tags specifying presence information tobe published, and a similar <unpublish> tag that contains a list of<publication> tags specifying presence information to be unpublished.Each publication identifies the category, instance, and collection towhich it applies. In some embodiments, the presence system accepts anexpiration value of zero for a publication within a <publish> tag as anindication to unpublish information rather than having a separate<unpublish> tag.

In one embodiment, the presence system accepts updates for multiplepublishing users in a single request. For example, when the SIP protocolis used, each publication may contain the URI of the user to which thepublication applies. This allows services to publish information onbehalf of a large number of users. For example, an Exchange email servercan publish calendar information for all of the users that use theserver. As another example, a cell phone carrier can publish informationon the location of its cell phone customers to a presence server. Inboth of these examples, information that would previously have generatedextensive network traffic can be published for a large number of usersin a single request to the presence server.

In one embodiment, the presence system accepts publication requestshaving different attributes in a single request. A publishing user mayspecify a different expiration policy for a publication in onecollection than a publication in another collection. For example, in acollection having detailed information for a publication “location,” thedetailed status information (e.g., “in conference room 2”) may changefrequently and have a shorter expiration than less detailed informationin another collection (e.g., “in Seattle”). As another example, apublishing user may specify a different notification policy for one typeof publication than for another in the same request. For example, thenotification policy may indicate that updates in certain categoriesshould not result in any notification at all.

Subscription Batching

In one embodiment, the presence system accepts subscriptions from asubscribing user for multiple categories in a single request. Forexample, a subscribing user that is interested in a publishing user'sstatus and location can compose a single subscribe request that contains“status” and “location” in a list of categories.

In one embodiment, the presence system accepts subscriptions from asubscribing user for multiple publishing users in a single request. Forexample, a subscribing user can subscribe to multiple categories forUser A and User B in a single request. When a subscribing user issubscribing to presence information for each of the users on their listof contacts, this can result in substantial resource savings because allof the subscriptions can be made in a single request. Similarly, thepresence system may also accept different category lists for differentusers in a single request. For example, a subscribing user can subscribeto categories 1 and 2 for User A and categories 3 and 4 for User B in asingle request.

In one embodiment, the presence system allows a subscribe request toretrieve presence information without creating a subscription. Forexample, a user may want to request presence information for apublishing user one time without receiving notifications as theinformation changes. The user can send a subscribe request with anindication that the request is a query for the current value of thepresence information in the specified categories and not a request tocreate a subscription.

In one embodiment, the presence system accepts the removal of existingsubscriptions in the same request as the addition of new subscriptions.For example, if a subscribing user is no longer interested in knowing apublishing user's location, and also would like to track the publishinguser's current phone number, the subscribing user can compose a singlerequest that contains the category “status” in a list of categories tounsubscribe from, and the category “phone number” in a list ofcategories to subscribe to.

In one embodiment, the presence system accepts subscription requests onbehalf of multiple subscribing users in a single request. For example,an enterprise may have a local presence server that receives individualsubscription requests from subscribing users within the enterprise andforwards the requests to a global presence server as a single batchedsubscription request.

In one embodiment, the presence system sends multiple presencesubscriptions using extensions to the SIP and SIMPLE protocols. Thepresence system adds a tag <batchSub> that contains a <categoryList> tagthat specifies the list of categories to be subscribed to. The<batchSub> tag may also specify an <adhocList> tag that specifies a listof multiple users whose categories are being subscribed to. The presencesystem also adds a tag <batchUnsub> that also contains tags specifyingthe list of users and their categories that are being unsubscribed from.The system may also allow a subscribe request with an empty body toindicate that all users and categories should be unsubscribed from,rather than requiring the subscribing user to list every category anduser that they have subscribed to.

In one embodiment, the presence system filters out unwanted presenceinformation for a subscribing user by requiring an explicit subscriptionto each category the subscribing user is interested in. For example, apublishing user may publish hundreds of categories of information, but asubscribing user may only want to know the publishing user's currentstatus. The subscribing user can send a subscribe request indicating asubscription to the category “status” and the user will only receivenotifications for that category. This prevents the subscribing user frombeing overwhelmed with notifications that the user is not interested inas the amount of information provided by the presence server grows.

Expiration Models

In one embodiment, the presence system accepts publications that expirewhen the publishing device logs off from the presence server. Inprevious systems the publishing user published information for a fixedduration (e.g., one hour), and had to refresh or republish theinformation when the publication was near expiration to keep theinformation published. The presence system defines a new type ofexpiration that keeps presence information published until the devicethat published the information goes offline. This is used, for example,when a device such as a cell phone has published instances ofinformation that are valid only while the cell phone is online. When thecell phone is turned off or otherwise goes offline, the presence servercan detect it and remove the information that was only relevant whilethe device was online. When the device is online, it is no longerrequired to continually update presence information that has not changedto keep it from expiring.

In one embodiment, the presence system accepts publications that expirewhen the publishing user is no longer online. This expiration type isuseful for presence information that applies to multiple devices for aslong as the user is online, but that is no longer relevant when the useris offline. The presence system may detect that the user is offline whenthe user is no longer logged on through any device. The presence systemmay detect that the user is no longer logged on to a device when thedevice disconnects from the presence server or when the device informsthe presence server that the user is no longer using the device. Forexample, a public Internet kiosk may allow a user to access the Internetby inserting a USB dongle that identifies the user. When the dongle isremoved, the Internet kiosk may inform any services that the user wasconnected to, such as a presence service, that the user is no longerusing the device. While the user is online, the information stayspublished without refresh requests from the user, thereby saving thepresence server from processing additional update requests.

In one embodiment, the presence system accepts publications that do notexpire. This expiration type, called static, is useful for informationthat is relevant whether a user is online or not, such as the user'sphone number or address. This expiration type can also be used byservices that publish information on behalf of a user. For example, anExchange server that publishes calendar information for multiple usersneed not know whether the user is online or not before publishing theuser's calendar information, and the information should not expireregardless of the user's current logged-on status. Therefore, suchservices can publish information by specifying a static expiration typefor the publication, and the published information will not beunpublished unless the presence server receives an explicit unpublishrequest.

Membership Groups

In one embodiment, the presence system accepts collection membershiplists that contain groups of users. Previously, the users that hadaccess to a particular collection of presence information were listedexplicitly, and a default collection contained information that appliedto users not on any list. The presence system allows groups of users tobe specified, which reduces the computational difficulty of determiningwhether a user has access to a collection for large groups of users.Collection membership lists can be specified when presence informationis published, or can be specified independently in a separate request.One type of membership group, “contact list,” specifies that anysubscribing user on a publishing user's list of contacts can viewinformation in a collection that the group is assigned to.

In one embodiment, the presence system accepts a membership groupcontaining users within the same enterprise as a publishing user. Thismembership group allows a single entry in a user's collection membershiplist to specify that any subscribing user in the same enterprise shouldhave access to a particular collection. For example, for a largecorporation like Microsoft, this allows a collection to be created withadditional detail for coworkers that contains a single entry in themembership list that specifies the “same enterprise” membership group.The presence server determines whether a particular subscribing user hasaccess to the collection by checking whether the user's enterprise isthe same as the publishing user, such as by querying an external domaincontroller. This prevents the presence server from replicating the samelist of users that the external domain controller already contains.

In one embodiment, the presence system accepts a membership groupcontaining users within a public cloud. A public cloud is defined as anexternally available list of users provided by a different organization.The public cloud membership group is useful when one operator of apresence server has partnerships with operators of other presencesystems. For example, a presence server using Microsoft's instantmessaging software could interact with AOL, Yahoo, and other instantmessage platforms using the public cloud membership groups. Byspecifying the public cloud membership group in a collection membershiplist, a publishing user can define the presence publications thatmembers of other presence systems can subscribe to and view withouthaving to list each member explicitly in the collection membership list.

In one embodiment, the presence system accepts a federated membershipgroup. A federated membership group is one in which multiple entitiesdefine lists of users that should have similar access to presenceinformation. For example, two corporations such as Microsoft and Intelcan make their employee lists available for federated membership groups.A presence server receiving publications with a federated membershipgroup type refers to specified federated membership servers to determinewhich users are members of the federated group. A publishing user canthen specify publications that the federated group can subscribe to.

In one embodiment, the presence system accepts batches of membershiplist changes in a single request. For example, a publishing user couldgrant access to subscribing users in the same enterprise membershipgroup to one collection and remove users in the public cloud membershipgroup from the collection in a single request. A publishing user mayspecify membership lists for multiple collections as well as multiplemembership groups and individual users in a membership list for aparticular collection in a single request.

By combining the collection model with membership groups, a publishinguser can establish a hierarchy of presence information access. Forexample, a user's calendar information can be made available in detailto coworkers within the same enterprise and be made available asfree/busy information (which only indicates the times that a user isfree and the times that a user is busy) to the general public. Thisallows members of the general public to schedule an appointment with thepublishing user that does not conflict with the rest of the user'sschedule without exposing personal information about what the user isdoing. On the other hand, coworkers are provided a more detailed view ofwhat the user is doing so that they can, for example, know that the userwill be in a meeting with the coworker later in the day.

FIG. 1 is a block diagram that illustrates components of the presencesystem in one embodiment. The presence system 110 is connected to entitydevices 120 and 130 via a communications link 140, such as the Internet.The entity devices correspond to entities that may be publishers orsubscribers. The entity devices include a compose publication updatecomponent 122, a compose subscription request component 125, and a sendrequest component 127. The compose publication update component 122composes update requests to published presence information that mayinclude batches of individual publication updates. The composesubscription request component 125 composes subscription requests thatmay include batches of subscriptions to multiple categories of presenceinformation for multiple publishing users. The send request component127 sends publication update requests and subscription requests to thepresence system 110.

The presence system includes a receive publication update component 150,an update publications component 155, a receive membership updatecomponent 170, an update memberships component 175, an expirepublications component 180, a detect connect status component 182, areceive subscription request component 185, an update subscriptionscomponent 190, a create collection component 165, a publication storecomponent 160, and a subscription store component 195. The publicationstore 160 contains the publications of the publishers. The publicationsare organized into collections created by the create collectioncomponent 165. The receive publication update component 150 is invokedwhen a request to update one or more publications is received from apublisher. The receive publication update component 150 invokes theupdate publications component 155 to add, remove, or update publicationsin the publication store 160 as specified by the request. The receivemembership update component 170 is invoked when a request to update themembership list of one or more collections in the publication store 160is received from a publisher. The request may be received as anindependent message or may be part of a publication update request. Thereceive membership update component 170 invokes the update membershipscomponent 175 to add, remove, and update memberships on collections inthe publication store 160. The receive subscription request component185 is invoked when a request is received from an entity to subscribe toone or more types of publications of a publisher. The receivesubscription request component 185 invokes the update subscriptionscomponent 190 to subscribe the entity to the requested types ofpublications. Subscriptions are stored in a subscription store 195,which may be integrated with the publication store 160. The expirepublications component 180 is invoked periodically by the presencesystem to clean up expired publications in the publication store 160.Although not shown in FIG. 1, the entity devices include components ofthe presence system to define collections and their memberships, to sendpublication updates, to send subscription requests, and to receivenotifications of updates to publications.

The computing device on which the system is implemented may include acentral processing unit, memory, input devices (e.g., keyboard andpointing devices), output devices (e.g., display devices), and storagedevices (e.g., disk drives). The memory and storage devices arecomputer-readable media that may contain instructions that implement thesystem. In addition, the data structures and message structures may bestored or transmitted via a data transmission medium, such as a signalon a communication link. Various communication links may be used, suchas the Internet, a local area network, a wide area network, apoint-to-point dial-up connection, a cell phone network, and so on.

Embodiments of the system may be implemented in various operatingenvironments that include personal computers, server computers,hand-held or laptop devices, multiprocessor systems,microprocessor-based systems, programmable consumer electronics, digitalcameras, network PCs, minicomputers, mainframe computers, distributedcomputing environments that include any of the above systems or devices,and so on. The computer systems may be cell phones, personal digitalassistants, smart phones, personal computers, programmable consumerelectronics, digital cameras, and so on.

The system may be described in the general context ofcomputer-executable instructions, such as program modules, executed byone or more computers or other devices. Generally, program modulesinclude routines, programs, objects, components, data structures, and soon that perform particular tasks or implement particular abstract datatypes. Typically, the functionality of the program modules may becombined or distributed as desired in various embodiments.

FIG. 2 is a protocol listing that illustrates the SIP protocolextensions for sending publication updates in one embodiment. Theprotocol begins with a SIP verb “PUBLISH” 210 that signals a request topublish information. The protocol contains headers 220 that furtherdescribe the request, such as its content type. The protocol contains a“<publish>” section 230 that contains a “<publications>” section 232.The “<publications>” section lists publications 235 and 240 to bepublished and publication 250 to be unpublished. The publication 235specifies presence information for a category named “status,” a specificinstance of the category named “laptop,” a container (which is a type ofcollection) identified as “1,” a version of “0,” a publishing useridentified by the SIP address “sip:foo@bar.com,” and an expiration typefor the publication of “user” which indicates that the publicationshould be removed when the user goes offline. Although text is shown forsome fields for clarity, numbers may also be used. For example, thevalue of the “instance” field may contain a unique identifier assignedto a device rather than the text “laptop.” Another publication 240specifies the same category “status,” but a different instance “desktop”in a different container “2” for the same publishing user. The protocolalso contains a publication 250 that is to be removed from thepublication store as indicated in this example by an expire type ofzero. Although in this example the “expireType” field is overloaded toindicate that a publication is to be unpublished, a separate field or aseparate XML section within the protocol could also be used. Thepublication 250 that is being removed is identified by a category name,an instance identifier, a container identifier, and a publishing useraddress. Specifying the publishing user's address in a publicationallows entities other than the user to publish and unpublish presenceinformation on a user's behalf, such as an Exchange server as describedabove.

FIG. 3 is a flow diagram that illustrates the processing of the updatepublications component of the presence system in one embodiment. Thecomponent is invoked by the receive publication update component when apublish request such as the one in FIG. 2 is received. In block 310, thecomponent receives an update publications request from the receivepublication update component. In block 320, the component selects thenext publication from the request. In block 330, the component locatesthe collection for the publishing user identified by the selectedpublication in the publication store. In decision block 340, if thepublication exists, then the component continues at block 360, else thecomponent continues at block 350. In block 350, the publication that didnot previously exist is added to the publication store. In block 360,the existing publication in the publication store is updated with theinformation in the request. In decision block 370, if there are morepublications in the request, the component loops to block 320 to selectthe next publication, else the component completes.

FIG. 4 is a protocol listing that illustrates the SIP protocolextensions for sending subscription requests in one embodiment. Theprotocol begins with a SIP verb “SUBSCRIBE” 410 that signals a requestto subscribe to published information. The protocol contains headers 420that further describe the request, such as its content type. Theprotocol also contains a “<batchSub>” section 440 that contains an“<action>” section 442. The action section contains an “<adhocList>”section 445 and a “<categoryList>” section 450. The adhoc list section445 specifies the identifiers of publishing users whose publications thesubscribing user would like to receive notifications for. The categorylist section 450 specifies the categories to subscribe to for eachpublishing user. The subscription request will cause the subscribinguser to receive notifications for each of the specified categories foreach of the specified users. Although not shown in FIG. 4, the requestmay also contain a list of categories and users to unsubscribe fromsimilar to the subscribe section 440.

FIG. 5 is a flow diagram that illustrates the processing of the updatesubscriptions component of the presence system in one embodiment. Thecomponent is invoked by the receive subscription request component whena subscription request such as the one in FIG. 4 is received. In block510, the component receives a subscription request from the receivesubscription request component. In decision block 520, if there are morecategory filters contained in the request, then the component continuesat block 530, else the component continues at block 550. In block 530,the component selects the next category filter from the request. Inblock 540, the component updates the category filters in thesubscription store. The component then loops to block 520 to determinewhether there are any more category filters in the request. In decisionblock 550, if there are more subscriptions in the request, then thecomponent continues at block 560, else the component continues at block580. In block 560, the component selects the next subscription from thesubscription request. In block 570, the component adds the subscriptionto the subscription store. The subscription may be in the form of a listof users and a list of categories, such that multiple categories can besubscribed for multiple users in a single subscription section. Thecomponent then loops to block 550 to determine whether there are anymore subscriptions in the request. In decision block 580, if there aremore unsubscriptions in the request, the component continues at block590, else the component completes. In block 590, the component selectsthe next unsubscription in the request. In block 595, the componentremoves the specified subscription from the subscription store. Afterall of the unsubscriptions are processed, the component completes.

FIG. 6 is a protocol listing that illustrates the SIP protocolextensions for updating collection memberships in one embodiment. Theportion of the protocol shown may be included in the body of a SIPpublish request as shown in FIG. 2, or it may be part of an independentmessage type specifically for updating memberships. The protocol beginswith a “<setContainerMembers>” section 610 that contains one or more“<container>” sections 615 that identify a collection whose membershipsare to be modified. Each container section contains one or more memberentries 620, 630, and 640. The first member entry 620 in FIG. 6specifies a type “uri” that indicates that the value is the SIP URI of aspecific user. The action type “add” indicates that the specified useris to be added as a member with access to the specified collection. Thesecond member entry 630 specifies a type “sameDomain” that indicatesthat the membership of users from the same domain as the publishing useris being modified, and the action type “remove” indicates that access tothe collection is being removed. The third member entry 640 specifies atype “contactList” and an action type “add” that indicates that accessto the specified collection is to be granted to any member of thepublishing user's contact list.

FIG. 7 is a flow diagram that illustrates the processing of the updatememberships component of the presence system in one embodiment. Thecomponent is invoked by the receive membership update component when amembership update request such as the one in FIG. 6 is received. Inblock 710, the component receives an update memberships request from thereceive membership update component. In block 720, the component selectsthe next container section from the request. In block 730, the componentselects the next member update within the container section. In decisionblock 740, if the member update contains an action type “add,” then thecomponent continues at block 750, else the component continues at block760. In block 750, the user or group specified in the member update isadded to the member list of the selected container in the publicationstore. In block 760, the user or group specified in the member update isremoved from the member list of the selected container in thepublication store. In decision block 770, if there are more memberupdates in the selected container section, then the component loops toblock 730 to select the next member update, else the component continuesat block 780. In decision block 780, if there are more containersections in the membership update request, then the component loops toblock 720 to select the next container section, else the componentcompletes.

FIG. 8 is a flow diagram that illustrates the processing of the expirepublications component of the presence system in one embodiment. Thecomponent is invoked periodically by the presence system to remove stalepublications from the publication store. In block 810, the componentselects the next publication from the publication store. In decisionblock 820, if the expire type of the selected publication is “static,”then the component continues at block 860, else the component continuesat block 830. In decision block 830, if the expire type of the selectedpublication is “device,” then the component continues at block 833, elsethe component continues at block 840. In decision block 833, if thedevice that published the selected publication is offline, then thecomponent continues at block 836, else the component continues at block860. In block 836, the component removes the expired publication fromthe publication store. In decision block 840, if the expire type of theselected publication is “user,” then the component continues at block843, else the component continues at block 850. In decision block 843,if the user that published the selected publication is not logged onthrough any device, then the component continues at block 846, else thecomponent continues at block 860. In block 846, the component removesthe expired publication from the publication store. In decision block850, if the expire type of the selected publication is “duration,” thenthe component continues at block 853, else the component continues atblock 860. In decision block 853, if the amount of time specified forthe selected publication has expired, then the component continues atblock 856, else the component continues at block 860. In block 856, thecomponent removes the expired publication from the publication store. Indecision block 860, if there are more publications in the publicationstore, then the component loops to block 810 to select the nextpublication, else the component completes. Although the method depictedshows a polling method of checking for and removing expiredpublications, it will be understood by those of ordinary skill in theart that other methods could be used such as an event-driven model inwhich the event of a user or device changing from online to offlinestatus causes the expired publications to be removed directly.

Although the subject matter has been described in language specific tostructural features and/or methodological acts, it is to be understoodthat the subject matter defined in the appended claims is notnecessarily limited to the specific features or acts described above.Rather, the specific features and acts described above are disclosed asexample forms of implementing the claims. For example, the requestsprocessed by the presence system have been described using the SIPprotocol, but other protocols such as a custom protocol on top of theTransmission Control Protocol (TCP) could be used. In some instancessteps have been described as being performed by components at thepresence server, but they could also be performed by components at theentities that interact with the presence server. The system could alsobe implemented as a peer-to-peer network in which there is no single,central presence server, but rather presence information could bedistributed and stored by the peers. Accordingly, the invention is notlimited except as by the appended claims.

We claim:
 1. A computer-implemented method implemented by a presencesystem for managing one or more presence publications in a publication,data store accessible by a handheld device of a user, comprising:receiving a batch publication request having a first presencepublication and a second presence publication published by the handhelddevice, the first presence publication including data indicating a firstexpire type and a first category, the second presence publicationincluding data indicating a second expire type and a second category,the first expire type being different from the second expire type;storing the first and second presence publications in the publicationdata store; identifying an event associated with the handheld device;determining whether the event is associated with at least one of thehandheld device is offline and the user is offline; and in response tothe determination that the event is associated with at least one of thehandheld device is offline and the user is offline: removing the firstpresence publication from the publication data store unless the firstexpire type is a static type or a user type; and removing the secondpresence publication from the publication data store unless the secondexpire type is a static type or a user type.
 2. The method of claim 1,further comprising assessing whether the second presence publication hasexpired by determining that a duration of time for the second presencepublication has expired.
 3. The method of claim 1, further comprisingnotifying the handheld device of the removal of the first presencepublication from the publication data store.
 4. The method of claim 1,further comprising, upon removing the first presence publication fromthe publication data store, determining that the publication data storecontains one or more additional presence publications.
 5. Acomputer-readable storage device containing instructions for managingone or more presence publications in a publication data store accessibleby a handheld device of a user, by a method comprising: receiving abatch publication request having a first presence publication and asecond presence publication published by the handheld device, the firstpresence publication including data indicating a first expire type and afirst category, the second presence publication including dataindicating a second expire type and a second category; storing the firstand second presence publications in the publication data store;identifying an event associated with the handheld device; determiningwhether the event is associated with at least one of the handheld deviceis offline and the user is offline; and in response to the determinationthat the event is associated with at least one of the handheld device isoffline and the user is offline: removing the first presence publicationfrom the publication data store unless the first expire type indicatesthe first expire type is a static type or a user type; and removing thesecond presence publication from the publication data store unless thesecond expire type is a static type or a user type.
 6. Thecomputer-readable storage device of claim 5, the method furthercomprising assessing whether the second presence publication has expiredby determining that a duration of time for the second presencepublication has expired.
 7. The computer-readable storage device ofclaim 5, the method further comprising notifying the handheld device ofthe removal of the first presence publication from the publication datastore.
 8. The computer-readable storage device of claim 5, the methodfurther comprising, upon removing the first presence publication fromthe publication data store, determining that the publication data storecontains one or more additional presence publications.
 9. A system formanaging one or more presence publications, comprising: a publicationdata store that: receives a batch publication request having a firstpresence publication and a second presence publication published by ahandheld device of a user, the first presence publication including dataindicating a first expire type and a first category, the second presencepublication including data indicating a second expire type and a secondcategory; and stores the first and second presence publications in thepublication data store: a handheld device capable of accessing thepublication data store; and an expire publications component that:identifies an event associated with the handheld device; determineswhether an event is associated with at least one of the handheld deviceis offline and the user is offline; and in response to the determinationthat the event is associated with at least one of the handheld device isoffline and the user is offline: removes the first presence publicationfrom the publication data store unless the first expire type is a statictype or a user type; and removes the second presence publication fromthe publication data store unless the second expire type is a statictype or a user type.
 10. The system of claim 9, wherein the expirepublications component further assesses whether the second presencepublication has expired by determining that a duration of time for thesecond presence publication has expired.
 11. The system of claim 9,wherein the expire publications component also notifies the handhelddevice of the removal of the first presence publication from thepublication data store.
 12. The method of claim 1, wherein the batchpublication request further comprises a third presence publicationpublished by the handheld device, the third presence publicationincluding data associated with a third expire type, the third presencepublication being associated with the user; and the method furthercomprising determining the expiration type of the third presencepublication comprises at least one of: a device type corresponding tothe mobile device and a user type corresponding to the user.
 13. Themethod of claim 12, further comprising: when the expiration type of thethird presence publication comprises the device type, removing the thirdpresence publication from the publication data store upon assessing thatthe handheld device is offline; and when the expiration type of thethird presence publication comprises the user type, removing the thirdpresence publication from the publication data store upon assessing thatthe user is not logged on through the handheld device or any otherhandheld device.
 14. The computer-readable storage device of claim 5,the method further comprising: wherein the batch publication requestfurther includes a third presence publication published by the handhelddevice, the third presence publication including data associated with athird expire type, the third presence publication being associated withthe user; and determining the expiration type of the third presencepublication comprises at least one of a device type corresponding to themobile device and a user type corresponding to the user.
 15. Thecomputer-readable storage device of claim 14, further comprising: whenthe expiration type of the third presence publication comprises thedevice type, removing the third presence publication from thepublication data store upon assessing that the mobile handheld device isoffline; and when the expiration type of the third presence publicationcomprises the user type, removing the third presence publication fromthe publication data store upon assessing that the user is not logged onthrough the handheld device or any other handheld device.
 16. The systemof claim 9, wherein the batch publication request further includes athird presence publication published by the handheld device, the thirdpresence publication including data associated with a third expire type,the third presence publication being associated with the user; andwherein the expire publications component also determines the expirationtype of the third presence publication comprises at least one of: adevice type corresponding to the mobile device and a user typecorresponding to the user.
 17. The system of claim 16, wherein, when theexpiration type of the third presence publication comprises the devicetype, the expire publications component removes the third presencepublication from the publication store upon assessing that the mobilehandheld device is offline, and, when the expiration type of the thirdpresence publication comprises the user type, removes the third presencepublication from the publication store upon assessing that the user isnot logged on through the handheld device or any other handheld device.18. The method of claim 13, wherein the removing of the third presencepublication from the publication data store upon assessing that thehandheld device is offline comprises removing only the information fromthe third presence publication that was relevant while the handhelddevice was online.
 19. The computer-readable storage device of claim 15,wherein the removing of the third presence publication from thepublication data store upon assessing that the handheld device isoffline comprises removing only the information from the third presencepublication that was relevant while the handheld device was online. 20.The system of claim 17, wherein the removing of the third presencepublication from the publication data store upon assessing that thehandheld device is offline comprises removing only the information fromthe third presence publication that was relevant while the handhelddevice was online.